Conversation
…ntrollers, services, etc..) once module is reloaded
|
Hmm are you sure that it works ? |
|
it's working at least in my case: here I faced with problem, since ocLazyLoad is not reloaded it keeps state, even if all angular app content is gone, and I did not find a way how to reset ocLazyLoad and make it properly init dynamic modules (it thinks all services and controllers already loaded, and does not register them any more) I agree it may cause unexpected behavior if application content was not reset |
|
Then maybe we should offer a way to reset the internal arrays of ocLazyLoad instead ? |
|
yes, it will work as well. |
|
Yeah, that would be better, and we could use it in the unit tests as well |
|
pull request is updated, but I'm not sure the solution is better than previous one |
|
I copied your code and rewrote the commit because you were bumping the version in your commit. |
|
ok, thank you |
Hi
Sometime It's needed to reload dynamic modules and initialize them properly
there are 2 useful params for it: rerun, reconfig
It will be nice to add one more (e.g. renew), which force to register module components
BR
Mikhail